<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<div id="app">
    <p v-for="item in list" :key="item.id">
        {{ item.zhaiyao }}
        <img :src="item.img_url" alt="">
    </p>
</div>
<script src="vue.js"></script>
<script src="02案例-品牌管理/node_modules/axios/dist/axios.js"></script>
<script>
    var vm = new Vue({
        el: '#app',
        data: {
            list: []
        },
        created() {
            axios
                .get('http://vue.studyit.io/api/getnewslist')
                .then(response => {
                    console.log(response.data);
                    this.list = response.data.message
                })
        }
    })
</script>
</body>
</html>